/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package limousine.vo;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author Neo
 */
public class Booking implements Serializable {
    private static final long serialVersionUID = -5925256319818910213L;
    
    private String bookingId;
    private String customerId;
    private String createBy;
    private Date createDate;
    private String updateBy;
    private Date updateDate;
    private int status;
    private String lock;
    private String timeout;
    
    public Booking() {
    }

    public Booking(String bookingId) {
        this.bookingId = bookingId;
    }

    public Booking(String bookingId, Date createDate, Date updateDate) {
        this.bookingId = bookingId;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public String getBookingId() {
        return bookingId;
    }

    public void setBookingId(String bookingId) {
        this.bookingId = bookingId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getLock() {
        return lock;
    }

    public void setLock(String lock) {
        this.lock = lock;
    }

    public String getTimeout() {
        return timeout;
    }

    public void setTimeout(String timeout) {
        this.timeout = timeout;
    }

    
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (bookingId != null ? bookingId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Booking)) {
            return false;
        }
        Booking other = (Booking) object;
        if ((this.bookingId == null && other.bookingId != null) || (this.bookingId != null && !this.bookingId.equals(other.bookingId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "limousine.vo.Booking[bookingId=" + bookingId + "]";
    }

}
